package com.scwatch.core.service;

import com.scwatch.common.orm.RowSide;
import com.scwatch.core.domain.Sinatv;
import com.scwatch.core.domain.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;

import java.util.List;
import java.util.Map;

/**
 * Created by rh005 on 2017/7/17.
 */
public interface SinatvService {
    public Page<Sinatv> findAll(Map<String, String[]> params,
                                Pageable pageable);

    public RowSide<Sinatv> findSide(Map<String, String[]> params,
                                    Sinatv bean, Integer position, Sort sort);

    public List<Sinatv> getList();

    public Sinatv get(Integer id);

    public String replace(String s);

    public Sinatv save(Sinatv bean, Integer siteId, User user);

    public Sinatv update(Sinatv bean);

    public Sinatv delete(Integer id);

    public Sinatv[] delete(Integer[] ids);
}
